$OpenBSD: patch-device_serial_serial_io_handler_posix_cc,v 1.3 2015/07/23 13:44:04 robert Exp $
--- device/serial/serial_io_handler_posix.cc.orig.port	Wed Jul 22 08:48:16 2015
+++ device/serial/serial_io_handler_posix.cc	Wed Jul 22 08:48:45 2015
@@ -61,7 +61,7 @@ bool BitrateToSpeedConstant(int bitrate, speed_t* spee
     BITRATE_TO_SPEED_CASE(9600)
     BITRATE_TO_SPEED_CASE(19200)
     BITRATE_TO_SPEED_CASE(38400)
-#if !defined(OS_MACOSX)
+#if !defined(OS_MACOSX) && !defined(OS_BSD)
     BITRATE_TO_SPEED_CASE(57600)
     BITRATE_TO_SPEED_CASE(115200)
     BITRATE_TO_SPEED_CASE(230400)
@@ -99,7 +99,7 @@ bool SpeedConstantToBitrate(speed_t speed, int* bitrat
     SPEED_TO_BITRATE_CASE(9600)
     SPEED_TO_BITRATE_CASE(19200)
     SPEED_TO_BITRATE_CASE(38400)
-#if !defined(OS_MACOSX)
+#if !defined(OS_MACOSX) && !defined(OS_BSD)
     SPEED_TO_BITRATE_CASE(57600)
     SPEED_TO_BITRATE_CASE(115200)
     SPEED_TO_BITRATE_CASE(230400)
